/**
 * Created by kule on 2017/7/7.
 */
import tinydate from 'tinydate';

const memoize={};
export const dateFormat=(date,format)=>{
    if(!(format in memoize)){
        memoize[format]=tinydate(format);
    }
    return memoize[format](date);
};
export const dateFormatFactory=tinydate;
export default dateFormat;